function CreateApplicationCtrl($scope, $state, $http) {
    $scope.submit = function (uid, name) {
        $state.go('index.improveAssociation', {uid: uid, name: name});
    };

    $scope.onPageChange = function () {
        console.log($scope.currentPage);
        $http({
            url: 'application/create/mine',
            method: 'get',
            params: {
                pageSize: 5,
                page: $scope.currentPage - 1
            },
        }).success(function (response) {
            $scope.list = response.content;
            $scope.pageCount = response.totalPages;
            // $scope.currentPage = response.page + 1;
        })
    };

    $scope.initPage = function () {
        console.log($scope.currentPage);
        $http({
            url: 'application/create/mine',
            method: 'get',
            params: {
                pageSize: 5,
                page: 0
            },
        }).success(function (response) {
            $scope.list = response.content;
            $scope.pageCount = response.totalPages;
            // $scope.currentPage = response.page + 1;
        })
    };

    $scope.initPage();
}